package com.edu.entity.chat;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class Chat {
    private int id;
    private String name;
    private int nownumber;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date createtime;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endtime;
    private int endnumber;
    private float money;
    private String brief;
    private String userbrief;
    private int user_id;
    private String user_title;
    private int browse;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date newtime;
    private String pichat;
    private int essay;

    public Chat() {
    }

    public Chat(int id, String name, int nownumber, Date createtime, Date endtime, int endnumber, float money, String brief, String userbrief, int user_id, String user_title, int browse, Date newtime, String pichat, int essay) {
        this.id = id;
        this.name = name;
        this.nownumber = nownumber;
        this.createtime = createtime;
        this.endtime = endtime;
        this.endnumber = endnumber;
        this.money = money;
        this.brief = brief;
        this.userbrief = userbrief;
        this.user_id = user_id;
        this.user_title = user_title;
        this.browse = browse;
        this.newtime = newtime;
        this.pichat = pichat;
        this.essay = essay;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getNownumber() {
        return nownumber;
    }

    public void setNownumber(int nownumber) {
        this.nownumber = nownumber;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getEndtime() {
        return endtime;
    }

    public void setEndtime(Date endtime) {
        this.endtime = endtime;
    }

    public int getEndnumber() {
        return endnumber;
    }

    public void setEndnumber(int endnumber) {
        this.endnumber = endnumber;
    }

    public float getMoney() {
        return money;
    }

    public void setMoney(float money) {
        this.money = money;
    }

    public String getBrief() {
        return brief;
    }

    public void setBrief(String brief) {
        this.brief = brief;
    }

    public String getUserbrief() {
        return userbrief;
    }

    public void setUserbrief(String userbrief) {
        this.userbrief = userbrief;
    }

    public int getUser_id() {
        return user_id;
    }

    public void setUser_id(int user_id) {
        this.user_id = user_id;
    }

    public String getUser_title() {
        return user_title;
    }

    public void setUser_title(String user_title) {
        this.user_title = user_title;
    }

    public int getBrowse() {
        return browse;
    }

    public void setBrowse(int browse) {
        this.browse = browse;
    }

    public Date getNewtime() {
        return newtime;
    }

    public void setNewtime(Date newtime) {
        this.newtime = newtime;
    }

    public String getPichat() {
        return pichat;
    }

    public void setPichat(String pichat) {
        this.pichat = pichat;
    }

    public int getEssay() {
        return essay;
    }

    public void setEssay(int essay) {
        this.essay = essay;
    }

    @Override
    public String toString() {
        return "Chat{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", nownumber=" + nownumber +
                ", createtime=" + createtime +
                ", endtime=" + endtime +
                ", endnumber=" + endnumber +
                ", money=" + money +
                ", brief='" + brief + '\'' +
                ", userbrief='" + userbrief + '\'' +
                ", user_id=" + user_id +
                ", user_title='" + user_title + '\'' +
                ", browse=" + browse +
                ", newtime=" + newtime +
                ", pichat='" + pichat + '\'' +
                ", essay=" + essay +
                '}';
    }
}